package org.jeecg.modules.workflow.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.common.system.base.service.impl.JeecgServiceImpl;
import org.jeecg.common.util.UUIDGenerator;
import org.jeecg.modules.workflow.entity.WorkFlowBase;
import org.jeecg.modules.workflow.entity.WorkFlowBaseAssign;
import org.jeecg.modules.workflow.entity.WorkFlowParentNode;
import org.jeecg.modules.workflow.mapper.WorkFlowBaseMapper;
import org.jeecg.modules.workflow.mapper.WorkFlowParentNodeMapper;
import org.jeecg.modules.workflow.service.IWorkFlowBaseAssignService;
import org.jeecg.modules.workflow.service.IWorkFlowBaseService;
import org.jeecg.modules.workflow.service.IWorkFlowParentNodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 一级节点
 * @Author: jeecg-boot
 * @Date:  2019-04-09
 * @Version: V1.0
 */
@Service
public class WorkFlowParentNodeServiceImpl extends JeecgServiceImpl<WorkFlowParentNodeMapper, WorkFlowParentNode> implements IWorkFlowParentNodeService {
    @Autowired
    WorkFlowParentNodeMapper workFlowParentNodeMapper;

    @Override
    public IPage<WorkFlowParentNode> selectTreeParentNodeByWorkflowId(IPage<WorkFlowParentNode> page, WorkFlowParentNode workFlowParentNode) {
        return workFlowParentNodeMapper.selectTreeParentNodeByWorkflowId(page,workFlowParentNode);
    }
}
